package com.nwpu.am.pojo.entity;

import com.nwpu.am.annotation.Probability;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * Rule
 *
 * @author Fbf
 * @version 1.0
 * {@code @date} 2024/6/4
 */

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("推理规则")
public class Rule implements Serializable {
    @NotNull
    private Long ruleId;
    private Long premiseKnowledgeId;
    private Long conclusionKnowledgeId;
    @Probability
    @ApiModelProperty("值为0~100的整数")
    private Integer probability;
}
